home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 100 / CD-ROM 100.iso / aplic / oo1_1 / f_0034 / common.jar / text / common / 01 / 02100001.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-30  |  21.0 KB  |  165 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>List of Regular Expressions</title><meta name="filename" content="text/common/01/02100001"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:3.283cm;}
  8.         span.Tabelle1B{
  9.                 width:14.718cm;}
  10.         td.Tabelle1A1{
  11.                 }
  12.         td.Tabelle1B1{
  13.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  14.         td.Tabelle1A2{
  15.                 }
  16.         td.Tabelle1B2{
  17.                 }
  18.         p.P1{
  19.                 }
  20.         span.T1{
  21.                 font-weight:bold;}
  22.         </style></head><body>
  23.   
  24.   
  25.   <p class="P1"/>
  26.   <p class="Head1"><help:paragraphinfo state="U" number="203" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="regular expressions; list of" tag="kw68251_1" xmlns:help="http://openoffice.org/2000/help"/> <help:to-be-embedded Eid="02100001" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68251">List of Regular Expressions</help:link></help:to-be-embedded></p>
  27.   <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  28.       <p class="TableHead"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>Character</p>
  29.      </span></th><th class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
  30.       <p class="TableHead"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Result/Use</p>
  31.      </span></th></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  32.      <p class="TextInTable"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>.</p>
  33.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  34.      <p class="TextInTable"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>Represents any single character. The search term "sh.rt" finds both "shirt" and "short".</p>
  35.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  36.      <p class="TextInTable"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>^Peter</p>
  37.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  38.      <p class="TextInTable"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/>Only finds the search term if it appears at the beginning of a paragraph. Special characters (for example, blank spaces and character-anchored frames) at the beginning of a paragraph are ignored.</p>
  39.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  40.      <p class="TextInTable"><help:paragraphinfo state="U" number="23" xmlns:help="http://openoffice.org/2000/help"/>Peter$</p>
  41.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  42.      <p class="TextInTable"><help:paragraphinfo state="U" number="24" xmlns:help="http://openoffice.org/2000/help"/>Only finds the search term if it appears at the end of a paragraph. Special characters (for example, blank spaces and character-anchored frames) at the end of a paragraph are ignored.</p>
  43.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  44.      <p class="TextInTable"><help:paragraphinfo state="U" number="25" xmlns:help="http://openoffice.org/2000/help"/>*</p>
  45.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  46.      <p class="TextInTable"><help:paragraphinfo state="U" number="26" xmlns:help="http://openoffice.org/2000/help"/>Represents any number of characters. For example, "Ab*c" finds "Ac", "Abc", "Abbc", "Abbbc", and so on.</p>
  47.      <p class="TextInTable"/>
  48.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  49.      <p class="TextInTable"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>+</p>
  50.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  51.      <p class="TextInTable"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>The character before this symbol must appear at least once: "AX.+4" finds "AX 4", but not "AX4"</p>
  52.      <p class="TextInTable"><help:paragraphinfo state="U" number="207" xmlns:help="http://openoffice.org/2000/help"/>The longest possible text within the paragraph is always found. If the paragraph contains the text AX 4 AX4, the search finds the first A to the last 4.</p>
  53.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  54.      <p class="TextInTable"><help:paragraphinfo state="U" number="199" xmlns:help="http://openoffice.org/2000/help"/>?</p>
  55.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  56.      <p class="TextInTable"><help:paragraphinfo state="U" number="200" xmlns:help="http://openoffice.org/2000/help"/>Finds words that include the characters that come before the character that is in front of the "\". For example, "Texts?" finds the words "Texts" and "Text".</p>
  57.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  58.      <p class="TextInTable"><help:paragraphinfo state="U" number="158" xmlns:help="http://openoffice.org/2000/help"/>\</p>
  59.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  60.      <p class="TextInTable"><help:paragraphinfo state="U" number="159" xmlns:help="http://openoffice.org/2000/help"/>Only <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>finds the character (no numbers) that you specify. For example, if you search for \C , only 'C' is found.</p>
  61.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  62.      <p class="TextInTable"><help:paragraphinfo state="U" number="166" xmlns:help="http://openoffice.org/2000/help"/>\n</p>
  63.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  64.      <p class="TextInTable"><help:paragraphinfo state="U" number="167" xmlns:help="http://openoffice.org/2000/help"/>Finds a hard row break that was inserted with Shift+Enter. To change <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>row breaks into paragraph breaks, enter <span class="T1">\n</span> in the <span class="T1">Search for</span> and <span class="T1">Replace with</span> boxes, and then click the <span class="T1">Replace all</span> button.</p>
  65.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  66.      <p class="TextInTable"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>\t</p>
  67.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  68.      <p class="TextInTable"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>Finds a tab space. You can also use this expression in the <span class="T1">Replace with </span>box.</p>
  69.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  70.      <p class="TextInTable"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>\></p>
  71.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  72.      <p class="TextInTable"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>Only finds the search term if it appears at the end of a word. For example, <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>"book\>" finds "checkbook", but not "bookmark".</p>
  73.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  74.      <p class="TextInTable"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>\<</p>
  75.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  76.      <p class="TextInTable"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/>Only finds the search term if it appears at the beginning of a word. For example, <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>"\>book" finds "bookmark", but not "checkbook".</p>
  77.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  78.      <p class="TextInTable"><help:paragraphinfo state="U" number="37" xmlns:help="http://openoffice.org/2000/help"/>^$</p>
  79.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  80.      <p class="TextInTable"><help:paragraphinfo state="U" number="38" xmlns:help="http://openoffice.org/2000/help"/>Searches for empty paragraphs.</p>
  81.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  82.      <p class="TextInTable"><help:paragraphinfo state="U" number="41" xmlns:help="http://openoffice.org/2000/help"/>^.</p>
  83.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  84.      <p class="TextInTable"><help:paragraphinfo state="U" number="42" xmlns:help="http://openoffice.org/2000/help"/>Searches for the first character of a paragraph.</p>
  85.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  86.      <p class="TextInTable"><help:paragraphinfo state="U" number="43" xmlns:help="http://openoffice.org/2000/help"/>&</p>
  87.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  88.      <p class="TextInTable"><help:paragraphinfo state="U" number="44" xmlns:help="http://openoffice.org/2000/help"/>Use this character in the <span class="T1">Replace with</span> box to add the characters that you enter to the search criteria when a replacement is made.</p>
  89.      <p class="TextInTable"><help:paragraphinfo state="U" number="201" xmlns:help="http://openoffice.org/2000/help"/>For example, if you enter "window" in the <span class="T1">Search for</span> box and "&frame" in the <span class="T1">Replace with</span> box, the word ΓÇ£windowΓÇ¥ is replaced with "window frame".</p>
  90.      <p class="TextInTable"><help:paragraphinfo state="U" number="206" xmlns:help="http://openoffice.org/2000/help"/>You can also enter a ΓÇ£&ΓÇ¥ in the <span class="T1">Replace with</span> box to modify the <span class="T1">Attributes</span> or a different <span class="T1">Format </span>of the search criteria you entered in the <span class="T1">Search for </span>box.</p>
  91.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  92.      <p class="TextInTable"><help:paragraphinfo state="U" number="172" xmlns:help="http://openoffice.org/2000/help"/>[abc123]</p>
  93.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  94.      <p class="TextInTable"><help:paragraphinfo state="U" number="173" xmlns:help="http://openoffice.org/2000/help"/>Finds the characters that are between the brackets.</p>
  95.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  96.      <p class="TextInTable"><help:paragraphinfo state="U" number="174" xmlns:help="http://openoffice.org/2000/help"/>[a-e]</p>
  97.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  98.      <p class="TextInTable"><help:paragraphinfo state="U" number="175" xmlns:help="http://openoffice.org/2000/help"/>Finds the characters that are between a and e.</p>
  99.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  100.      <p class="TextInTable"><help:paragraphinfo state="U" number="176" xmlns:help="http://openoffice.org/2000/help"/>[a-eh-x]</p>
  101.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  102.      <p class="TextInTable"><help:paragraphinfo state="U" number="177" xmlns:help="http://openoffice.org/2000/help"/>Finds the characters that are between a-e and h-x.</p>
  103.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  104.      <p class="TextInTable"><help:paragraphinfo state="U" number="178" xmlns:help="http://openoffice.org/2000/help"/>[^a-s]</p>
  105.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  106.      <p class="TextInTable"><help:paragraphinfo state="U" number="179" xmlns:help="http://openoffice.org/2000/help"/>Finds all characters except for a-s</p>
  107.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  108.      <p class="TextInTable"><help:paragraphinfo state="U" number="180" xmlns:help="http://openoffice.org/2000/help"/>\xXXXX</p>
  109.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  110.      <p class="TextInTable"><help:paragraphinfo state="U" number="181" xmlns:help="http://openoffice.org/2000/help"/>Finds a special character based on its four-digit hexadecimal code (XXXX).</p>
  111.      <p class="TextInTable"><help:paragraphinfo state="U" number="208" xmlns:help="http://openoffice.org/2000/help"/>The code for the special character depends on the font used. You can view the codes by choosing <span class="T1">Insert - Special Character</span>.</p>
  112.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  113.      <p class="TextInTable"><help:paragraphinfo state="U" number="186" xmlns:help="http://openoffice.org/2000/help"/>|</p>
  114.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  115.      <p class="TextInTable"><help:paragraphinfo state="U" number="187" xmlns:help="http://openoffice.org/2000/help"/>Finds the search terms that occur before and after the "|". For example, "this|that" finds both "this" and "that" when you search.</p>
  116.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  117.      <p class="TextInTable"><help:paragraphinfo state="U" number="209" xmlns:help="http://openoffice.org/2000/help"/>{2}</p>
  118.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  119.      <p class="TextInTable"><help:paragraphinfo state="U" number="210" xmlns:help="http://openoffice.org/2000/help"/>Defines the number of times that the character in front of the opening bracket occurs. For example, "tre{2}" finds "tree".</p>
  120.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  121.      <p class="TextInTable"><help:paragraphinfo state="U" number="211" xmlns:help="http://openoffice.org/2000/help"/>{1,2}</p>
  122.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  123.      <p class="TextInTable"><help:paragraphinfo state="U" number="212" xmlns:help="http://openoffice.org/2000/help"/>Defines the number of times that the character in front of the opening bracket can occur. For example, "tre{1,2}" finds both "tree" and "treated".</p>
  124.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  125.      <p class="TextInTable"><help:paragraphinfo state="U" number="213" xmlns:help="http://openoffice.org/2000/help"/>( )</p>
  126.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  127.      <p class="TextInTable"><help:paragraphinfo state="U" number="214" xmlns:help="http://openoffice.org/2000/help"/>Defines the characters inside the brackets as a reference. You can then refer to the first reference in the current expression with "\1", to the second reference with "\2", and so on.</p>
  128.      <p class="TextInTable"><help:paragraphinfo state="U" number="215" xmlns:help="http://openoffice.org/2000/help"/>For example, if your text contains the number 13487889 and you search using the regular expression (8)7\1\1, <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>"8788" is found.</p>
  129.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  130.      <p class="TextInTable"><help:paragraphinfo state="U" number="216" xmlns:help="http://openoffice.org/2000/help"/>[:digit:]?</p>
  131.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  132.      <p class="TextInTable"><help:paragraphinfo state="U" number="217" xmlns:help="http://openoffice.org/2000/help"/>Finds a single digit number. To find a number with more than one digit, use [:digit:]*.</p>
  133.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  134.      <p class="TextInTable"><help:paragraphinfo state="U" number="218" xmlns:help="http://openoffice.org/2000/help"/>[:space:]?</p>
  135.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  136.      <p class="TextInTable"><help:paragraphinfo state="U" number="219" xmlns:help="http://openoffice.org/2000/help"/>Finds white space such as spaces and tabs.</p>
  137.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  138.      <p class="TextInTable"><help:paragraphinfo state="U" number="220" xmlns:help="http://openoffice.org/2000/help"/>[:print:]?</p>
  139.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  140.      <p class="TextInTable"><help:paragraphinfo state="U" number="221" xmlns:help="http://openoffice.org/2000/help"/>Finds printable characters.</p>
  141.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  142.      <p class="TextInTable"><help:paragraphinfo state="U" number="222" xmlns:help="http://openoffice.org/2000/help"/>[:cntrl:]?</p>
  143.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  144.      <p class="TextInTable"><help:paragraphinfo state="U" number="223" xmlns:help="http://openoffice.org/2000/help"/>Finds nonprinting characters.</p>
  145.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  146.      <p class="TextInTable"><help:paragraphinfo state="U" number="224" xmlns:help="http://openoffice.org/2000/help"/>[:alnum:]?</p>
  147.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  148.      <p class="TextInTable"><help:paragraphinfo state="U" number="225" xmlns:help="http://openoffice.org/2000/help"/>Finds alphanumeric characters (numbers and text characters).</p>
  149.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  150.      <p class="TextInTable"><help:paragraphinfo state="U" number="226" xmlns:help="http://openoffice.org/2000/help"/>[:alpha:]?</p>
  151.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  152.      <p class="TextInTable"><help:paragraphinfo state="U" number="227" xmlns:help="http://openoffice.org/2000/help"/>Finds alphabetic characters.</p>
  153.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  154.      <p class="TextInTable"><help:paragraphinfo state="U" number="228" xmlns:help="http://openoffice.org/2000/help"/>[:lower:]?</p>
  155.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  156.      <p class="TextInTable"><help:paragraphinfo state="U" number="229" xmlns:help="http://openoffice.org/2000/help"/>Finds lowercase characters if <span class="T1">Match case</span> is selected in the <span class="T1">Options </span>area.</p>
  157.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  158.      <p class="TextInTable"><help:paragraphinfo state="U" number="230" xmlns:help="http://openoffice.org/2000/help"/>[:upper:]?</p>
  159.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  160.      <p class="TextInTable"><help:paragraphinfo state="U" number="231" xmlns:help="http://openoffice.org/2000/help"/>Finds uppercase characters if <span class="T1">Match case</span> is selected in the <span class="T1">Options area.</span></p>
  161.     </span></td></tr></table>
  162.   <p class="Paragraph"><help:paragraphinfo state="U" number="204" xmlns:help="http://openoffice.org/2000/help"/><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="DRAW"/><help:case select="IMPRESS"/><help:default>For a logical search expression with nested AND/OR operators, use brackets. For example, " ((a[A-z]*)|(ab[A-z]*)|(b[A-z]*))$" searches for text that occurs at the end of a paragraph and starts with a space followed by an "a", an "ab", or a "b".</help:default></help:switch></p>
  163.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  164.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65852" Eid="02100000" xmlns:help="http://openoffice.org/2000/help"/></p>
  165.  </body></html>